package com.radish.springcloud.dao;

import com.radish.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author: Radish
 * @date: 2020-08-03 16:26
 */
@Mapper
public interface OrderDao {

    //新建订单
    void create(Order order);

    //修改订单状态，从0变1
    void update(@Param("userId") Long userId, @Param("status") Integer status);

}
